import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    token:"",
    user_id:"",
  },
  mutations: {
    add(state,token){
      state.token=token
      state.user_id=.user_id
    },
    tui(state){
      state.token=""
    },
    
    
  },
  actions: {
  },
  modules: {
  },
  plugins: [createPersistedState()]
})
